let list = [1,2,3]
for(let i = 0; i< list.length; i++){
  let item = list[i]
  console.log('i----',i)
  if(item > 0){
    list.push(4)
  }
}